home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
wtek0693.zip
/
OOPALLEY.ZIP
/
SEQCLTN.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-27
|
1KB
|
49 lines
#include "seqcltn.h"
#define THIS SeqCltn
#define BASE Collection
DEFINE_CLASS(SeqCltn,Collection);
void SeqCltn::atAllPut(const Object&)
{ derivedClassResponsibility("atAllPut"); }
void SeqCltn::deepenShallowCopy()
{
BASE::deepenShallowCopy();
}
Object* SeqCltn::first() const
{ derivedClassResponsibility("first"); return 0; }
int SeqCltn::indexOf(const Object&) const
{ derivedClassResponsibility("indexOf"); return 0; }
int SeqCltn::indexOfSubCollection(const SeqCltn& /*cltn*/,
int /*start*/) const
{
derivedClassResponsibility("indexOfSubCollection"); return 0;
}
Object* SeqCltn::last() const
{ derivedClassResponsibility("last"); return 0; }
Object* SeqCltn::doNext(Iterator& pos) const
{
if (pos.index < size()) return at(pos.index++);
return 0;
}
void SeqCltn::replaceFrom(int /*start*/,
int /*stop*/,
const SeqCltn& /*replacement*/,
int /*startAt*/)
{
derivedClassResponsibility("replaceFrom");
}
void SeqCltn::indexRangeErr() const
{
DTerror("Index out of range: ",className());
}